#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <iostream>
#include <armadillo>
#include <iomanip>
#include <vector>

using namespace std;
using namespace arma;

#include "optflow_feat_def.hpp"
#include "optflow_feat_impl.hpp"



uword ro = 120;
uword co = 160;
//Optical Flow features
//Knn classifier: N=3

//NICTA
const std::string path = "/home/johanna/codes/multi-actions/kth_multi/"; 

//Home
//const std::string path = "/home/johanna/codes-svn/multi-action/kth_multi/";


//UQ-server
//const std::string path = "/home/users/uqjcarva/Johanna/codes-linux/multi-actions/kth_multi/"; 



//wanda
//const std::string path = "/data2/Users/johanna/codes-wanda/kth_multi/";



////When I need to save
const std::string  feat_path ="./flow_features/"; //Create this folder


///OJO!!!!!!!!!!!!!!
const std::string  actionNames = "actionNames.txt";



int
main(int argc, char** argv)
{
 

  
  opt_feat kth_optflow(path, actionNames, feat_path, co, ro);
  cout << "Training with 15 features: " << endl;
  kth_optflow.training(); 
  cout << endl;
  
  
  cout << "Testing" << endl;
  kth_optflow.testing();
  
 
  
  
}







/*
 c **** *ma*ke_minimum_required(VERSION 2.8)
 project( grassmann_clustering)
 find_package( OpenCV REQUIRED)
 find_package( Armadillo REQUIRED)
 add_executable( run_3actions.exe Three_actions_UCF11.cpp)
 target_link_libraries( run_3actions.exe ${OpenCV_LIBS} -O1 -larmadillo)
 */
